package com.yupi.usercenter.rabbitmq;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 王博
 * @DateTime 2024-05-23 14:01
 */
@Configuration
public class RabbitMqConfig {
    /*@Bean
    public Queue eEventOfflineQueue() {
        return new Queue("wangboQueue123", true);
    }
    @Bean
    public Binding eEventOfflineQueueDirectExchangeWitheEventOfflineRouterBinding() {
        return BindingBuilder.bind(eEventOfflineQueue()).to(eEventExchange()).with("");
    }
    @Bean
    public DirectExchange eEventExchange() {
        return new DirectExchange("wangboExchange123", true, false);
    }*/
}
